﻿#region

using System;
using System.Windows.Forms;
using Y2M.Components;

#endregion

namespace Y2M.Forms
{
    public partial class WebBrowserForm : Form
    {
        public WebBrowserForm(Clip clip)
        {
            InitializeComponent();

            _clip = clip;
            wbrBrowser.Url = _clip.WatchPage;
        }

        private readonly Clip _clip;

        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            if (DesignMode || RunTimeChecker.IsRunTime == false)
                return;

            Text = _clip.Title;
        }
    }
}